import requests
def test_Proxy(ip_port):
    flag = False
    proxy = "http://"+ip_port
    try:
        requests.get('http://www.baidu.com/', proxies={"http":proxy})
    except:
        flag = False
    else:
        flag = True
    return flag
# r= test_Proxy('198.11.137.71:80')
# print r